/**
 * Copyright © 2017 金风科技. All rights reserved.
 *
 * @Title: ResponseCode.java
 * @Prject: tgcw-c-common
 * @Package: com.goldwind.common.code
 * @Description: 返回码常量
 * @author: liangwenlu
 * @date: 2019年3月25日 下午2:36:03
 * @version: V1.0
 */
package com.gd.iot.energy.code;

/**
 * @ClassName: ResponseCode
 * @Description: 返回码常量
 */
public class ResponseCode {


    private ResponseCode() {

    }

    /*---------------------第1位  1.成功 2.告警 3.错误--------------------------*/
    /*---------------------第2、3位  服务区分编号-------------------------------*/

    /**
     * 操作成功
     */
    public static final String SUCCESS = "1000000";

    /**
     * 操作失败
     */
    public static final String FAILD = "3000001";

    /**
     * 自定义异常描述
     */
    public static final String CUSTOM_EXCEPTION_DESC = "3000008";

    /**
     * 该接口暂停使用，不用再次请求
     */
    public static final String SYSTEM_API_UNSUPORT = "3000009";

    /**
     * 系统错误，业务无法捕捉的错误
     */
    public static final String SYSTEM_ERROR = "3000010";

    /*------------------------------------------基础返回编 千位:0 百位:0 ------------------------------------------*/

    /**
     * 需要POST请求
     */
    public static final String SYSTEM_HTTP_POST = "3010001";

    /**
     * 需要GET请求
     */
    public static final String SYSTEM_HTTP_GET = "3010002";

    /**
     * 需要HTTPS请求
     */
    public static final String SYSTEM_HTTPS = "3010003";

    /**
     * 请求IP被限制
     */
    public static final String IP_LIMIT = "3010004";

    /**
     * 请求接口不存在
     */
    public static final String API_NOEXIST = "3010005";

    /**
     * 序列化对象不存在
     */
    public static final String SERIALIZE_MISS = "3010006";

    /**
     * 序列化失败
     */
    public static final String SERIALIZE_ERROR = "3010007";

    /**
     * 缓存操作失败
     */
    public static final String CACHE_ERROR = "3010008";

    /**
     * 远程调用失败
     */
    public static final String SERVICE_OFF_LINE = "3010009";

    /**
     * 服务未上线
     */
    public static final String SERVICE_OUTTIME = "3010010";

    /**
     * 没有数据要保存
     */
    public static final String NO_DATA_TO_INSERT = "3010011";

    /**
     * 数据保存失败
     */
    public static final String NO_DATA_INSERTED = "3010012";

    /**
     * Http请求外部系统失败
     */
    public static final String HTTP_REQUEST_FAILD = "3010013";

    /**
     * sphm系统登录失败重试超过限定次数
     */
    public static final String SPHM_LOGIN_RETRY_OVER = "3010014";


    /**
     * 文件上传失败
     */
    public static final String UPLOAD_FILE_ERROR = "3010015";

    /**
     * 导出excel失败
     */
    public static final String EXPORT_EXCEL_FAILED = "3010016";

    /**
     * 没有数据
     */
    public static final String NO_DATA_TO_EXPORT = "3010017";

    /**
     * 文件服务未上线
     */
    public static final String FILE_SERVICE_NOT_ONLONE = "3010018";

    /**
     * 远程调用失败
     */
    public static final String RPC_CALL_ERROR = "3010019";

    /**
     * 记录不存在
     */
    public static final String RECORD_NOT_EXIST = "3010020";


    /*------------------------------------------参数篇 千位:0 百位:1------------------------------------------*/

    /**
     * 缺少请求参数
     */
    public static final String PARAMETER_REQUIRED = "3010101";

    /**
     * 请求参数不合法
     */
    public static final String PARAMETER_ERROR = "3010102";

    /**
     * 组织架构不存在
     */
    public static final String BUSINESS_GROUP_NOT_EXIST = "3010103";

    //---------------------------业务code

    /**
     * 验证码生成失败
     */
    public static final String CAPTCHA_GENERATE_ERROR = "3020001";

    /**
     * 用户不存在
     */
    public static final String ADMIN_NOT_EXIST = "3020002";

    /**
     * 帐号已经禁止登录
     */
    public static final String ADMIN_FORBIDDEN = "3020003";

    /**
     * 验证码错误
     */
    public static final String CAPTCHA_VALIDATE_FAILED = "3020004";

    /**
     * 请登录后访问
     */
    public static final String AUTH_FAILED = "3020005";

    /**
     * 用户名或密码错误
     */
    public static final String USERNAME_OR_PASSWORD_ERROR = "3020006";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAILED = "3020007";

    /**
     * 无权访问
     */
    public static final String NO_RIGHTS = "3020008";

    /**
     * 用户已超过最大登录次数，请24小时后重试或联系管理员
     */
    public static final String ADMIN_LOCKED = "3020009";

    /**
     * 解析excel文件失败
     */
    public static final String PARSE_EXCEL_FAILED = "3020010";

    /**
     * 角色有关联的用户，请解除关联后再删除
     */
    public static final String ROLE_ADMIN_HAS_RELATION = "3020011";

    /**
     * 两次密码输入不一致
     */
    public static final String PASSWORD_NOT_SAME = "3020012";

    /**
     * 用户名已存在
     */
    public static final String USER_NAME_IS_EXIST = "3020013";

    /**
     * 原密码不正确
     */
    public static final String OLD_PASSWORD_ERROR = "3020014";

    /**
     * 邮箱格式不正确
     */
    public static final String EMAIL_FORMAT_ERROR = "3020015";

    /**
     * 父级不存在
     */
    public static final String PARENT_NOT_EXIST = "3020016";

    /**
     * 类型不能比父级的类型小
     */
    public static final String PERMISSION_TYPE_ERROR = "3020017";

    /**
     * 删除的节点下面有子级节点，请逐级删除节点
     */
    public static final String HAS_CHILD = "3020018";

    /**
     * 余额不足
     */
    public static final String LEFT_FEE_NOT_ENOUGH = "3020019";

    /**
     * 金额不能小于0
     */
    public static final String FEE_NOT_LESS_THAN_ZERO = "3020020";

    /**
     * 开阀不成功,操作失败
     */
    public static final String OPEN_VALVE_FAIL = "3020021";

    /**
     * 开阀不成功,当前表没有对接采集器
     */
    public static final String OPEN_VALVE_FAIL_NO_COLLECT = "3020022";

    /**
     * 开阀不成功,当前用户未绑定集中器
     */
    public static final String OPEN_VALVE_FAIL_NO_CONCERT = "3020023";

    /**
     * 开阀不成功,设备不在线
     */
    public static final String OPEN_VALVE_FAIL_EQUIP_OFFLINE = "3020024";

    /**
     * 关阀不成功,操作失败
     */
    public static final String CLOSE_VALVE_FAIL = "3020025";

    /**
     * 关阀不成功,当前表没有对接采集器
     */
    public static final String CLOSE_VALVE_FAIL_NO_COLLECT = "3020026";

    /**
     * 关阀不成功,当前用户未绑定集中器
     */
    public static final String CLOSE_VALVE_FAIL_NO_CONCERT = "3020027";

    /**
     * 关阀不成功,设备不在线
     */
    public static final String CLOSE_VALVE_FAIL_EQUIP_OFFLINE = "3020028";

    /**
     * 集中器不存在
     */
    public static final String NO_CONCERT = "3020029";

    /**
     * 集中器不在线
     */
    public static final String CONCERT_OFFLINE = "3020030";
}
